package com.zzxx.wechat.adpater;

import com.zzxx.wechat.common.vo.ArcteryxProductVo;
import com.zzxx.wechat.entity.ArcteryxProduct;

import java.util.*;

public class ArcteryxAdapter {

    public static List<ArcteryxProductVo> arcteryxProduct2Vos(List<ArcteryxProduct> arcteryxProducts) {
        List<ArcteryxProductVo> arcteryxProductVos = new ArrayList<>();

        for (ArcteryxProduct arcteryxProduct : arcteryxProducts) {
            ArcteryxProductVo arcteryxProductVo = new ArcteryxProductVo();
            arcteryxProductVo.setProductNo(arcteryxProduct.getProductNo());
            arcteryxProductVo.setColor(arcteryxProduct.getColor());
            arcteryxProductVo.setStatus(arcteryxProduct.getStatusCode());
            arcteryxProductVos.add(arcteryxProductVo);
        }
        return arcteryxProductVos;
    }
}
